package BehavioralPattern.Command.Calculator;

public class Client {
    public static void main(String[] args) {
        CalculatorForm calculatorForm = new CalculatorForm();
        AbstractCommand command;
        command = new AddCommand();
        calculatorForm.setCommand(command);
        calculatorForm.compute(5);
        calculatorForm.compute(10);
        calculatorForm.compute(15);
        calculatorForm.undo();
    }
}
